package com.sccba.emtbusiness.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sccba.common.annotation.Excel;
import com.sccba.common.core.domain.BaseEntity;
import com.sccba.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 处理时间线记录对象 yjcz_handle_time_line
 * 
 * @author lichh
 * @date 2024-04-24
 */
public class YjczHandleTimeLine extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long pkId;

    /** 处置操作对应处置流程id（关联yjcz_emergency_handle_process） */
    private String nodeContent;

    private String nodeRequireMaxTime;

    private Long nodeSeq;

    private Long nodeContactUserId;

    private String nodeRemark;

    private SysUser nodeContactUser;

    /** 处置操作对应生产事件id（关联yjcz_product_event_info） */
    @Excel(name = "处置操作对应生产事件id", readConverterExp = "关=联yjcz_product_event_info")
    private Long handleEventId;

    private Long handleSceneId;

    /** 处置时间点 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "处置时间点", width = 30, dateFormat = "yyyy-MM-dd")
    private Date handleDt;

    /** 处置状态（对应字典表字典项） */
    @Excel(name = "处置状态", readConverterExp = "对=应字典表字典项")
    private Integer handleState;

    /** 处置过程详细描述 */
    @Excel(name = "处置过程详细描述")
    private String handleDesc;

    public static YjczHandleTimeLine transByHandleProcess (YjczEmergencyHandleProcess handleProcess) {
        YjczHandleTimeLine timeLine = new YjczHandleTimeLine();
        timeLine.setNodeContent(handleProcess.getNodeContent());
        timeLine.setNodeRequireMaxTime(handleProcess.getNodeRequireMaxTime());
        timeLine.setNodeSeq(handleProcess.getNodeSeq());
        timeLine.setNodeContactUserId(handleProcess.getNodeContactUserId());
        timeLine.setNodeContactUser(handleProcess.getNodeContactUser());
        timeLine.setNodeRemark(handleProcess.getNodeRemark());
        return timeLine;
    }

    public void setPkId(Long pkId) 
    {
        this.pkId = pkId;
    }

    public Long getPkId() 
    {
        return pkId;
    }

    public void setHandleEventId(Long handleEventId)
    {
        this.handleEventId = handleEventId;
    }

    public Long getHandleEventId() 
    {
        return handleEventId;
    }
    public void setHandleDt(Date handleDt) 
    {
        this.handleDt = handleDt;
    }

    public Date getHandleDt() 
    {
        return handleDt;
    }
    public void setHandleState(Integer handleState) 
    {
        this.handleState = handleState;
    }

    public Integer getHandleState()
    {
        return handleState;
    }
    public void setHandleDesc(String handleDesc) 
    {
        this.handleDesc = handleDesc;
    }

    public String getHandleDesc() 
    {
        return handleDesc;
    }

    public String getNodeContent() {
        return nodeContent;
    }

    public void setNodeContent(String nodeContent) {
        this.nodeContent = nodeContent;
    }

    public String getNodeRequireMaxTime() {
        return nodeRequireMaxTime;
    }

    public void setNodeRequireMaxTime(String nodeRequireMaxTime) {
        this.nodeRequireMaxTime = nodeRequireMaxTime;
    }

    public Long getNodeSeq() {
        return nodeSeq;
    }

    public void setNodeSeq(Long nodeSeq) {
        this.nodeSeq = nodeSeq;
    }

    public Long getNodeContactUserId() {
        return nodeContactUserId;
    }

    public void setNodeContactUserId(Long nodeContactUserId) {
        this.nodeContactUserId = nodeContactUserId;
    }

    public String getNodeRemark() {
        return nodeRemark;
    }

    public void setNodeRemark(String nodeRemark) {
        this.nodeRemark = nodeRemark;
    }

    public SysUser getNodeContactUser() {
        return nodeContactUser;
    }

    public void setNodeContactUser(SysUser nodeContactUser) {
        this.nodeContactUser = nodeContactUser;
    }

    public Long getHandleSceneId() {
        return handleSceneId;
    }

    public void setHandleSceneId(Long handleSceneId) {
        this.handleSceneId = handleSceneId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("pkId", getPkId())
            .append("handleEventId", getHandleEventId())
            .append("handleDt", getHandleDt())
            .append("handleState", getHandleState())
            .append("handleDesc", getHandleDesc())
            .toString();
    }
}
